<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center myAppointment_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub myAppointment_fd0_0'>
          <view class='flex flex-wrap align-center myAppointment_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  myAppointment_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='myAppointment_fd0_0_c1_c0'>{{$t('团体预约')}}</text>
          </view>
          <view class='flex flex-wrap align-center justify-end myAppointment_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!-- <view class="flex benben-position-layout flex flex-wrap align-center myAppointment_flex_1"
        :style="{top:(80+StatusBarRpx)+'rpx', }">
        <view>
          <benben-flex-tabs class-name='myAppointment_benbenTabsfd1_0' v-model="tabls" ref="benben_tabsfd1_0"
            select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false' :open-sticky='false' :top='0'
            :is-show-content='false' :scrollspy='false' :tabs-info.sync="tabsInfofd1_0" @change="getRequestFunc()">

            <scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
              class="benben-tabs" style="width:750rpx" :scroll-x="true" :scroll-left.sync="tabsInfofd1_0.moveX"
              scroll-with-animation="all .3s ease">
              <view class="benben-tabs-content" id="benben_tabsfd1_0-content">
                <view id="benben_tabsfd1_0-title" class="benben-tabs-title flex align-center flex ">
                  <view
                    :class="{ 'checkTitlefd1_0': tabls == '1', 'flex flex-wrap align-center myAppointment_titlefd1_0_c3': true }"
                    @tap="tabls = '1'" :id="`benben_tabsfd1_0-title-item-${'1'}`">

                    <text>{{$t('课程')}}</text>

                  </view>
                  <view
                    :class="{ 'checkTitlefd1_0': tabls == '2', 'flex flex-wrap align-center myAppointment_titlefd1_0_c3': true }"
                    @tap="tabls = '2'" :id="`benben_tabsfd1_0-title-item-${'2'}`">

                    <text>{{$t('心理辅导')}}</text>

                  </view>
                </view>
                <view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}"
                  id="benben_tabsfd1_0-line"
                  class="benben-tabs-line flex benben-flex-tabs-line myAppointment_linefd1_0"></view>
              </view>
            </scroll-view>

          </benben-flex-tabs>

        </view>

      </view> -->
      <!-- <view :style="{height: '88rpx'}"></view> -->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myAppointment_flex_2"
        v-if=" tabls=='1'">
        <template v-for='(item,key0) in curriculumList'>
          <view class='flex flex-wrap align-center myAppointment_fd2_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/wode/courseDetails/courseDetails?id=${item.aid}`" :key='key0'>
            <image class='myAppointment_fd2_0_c0' mode="aspectFill" :src='item.events.img'></image>
            <view class='flex flex-direction flex-wrap align-stretch flex-sub myAppointment_fd2_0_c1'>
              <text class='myAppointment_fd2_0_c1_c0'>{{item.events.title}}</text>
              <view class='flex flex-wrap align-center myAppointment_fd2_0_c1_c1'>
                <text class='myAppointment_fd2_0_c1_c1_c0'>{{$t('地点')}}：</text>
                <text class='myAppointment_fd2_0_c1_c1_c0'>{{item.events.address}}</text>
              </view>
              <view class='flex flex-wrap align-center myAppointment_fd2_0_c1_c1'>
                <text class='myAppointment_fd2_0_c1_c1_c0'>{{$t('活动时间')}}：</text>
                <text class='myAppointment_fd2_0_c1_c1_c0'>{{item.events.start_time}}</text>
                <text class='myAppointment_fd2_0_c1_c1_c0'>{{$t('至')}}</text>
                <text class='myAppointment_fd2_0_c1_c1_c0'>{{item.events.end_time}}</text>
              </view>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myAppointment_flex_3"
        v-if=" tabls=='2'">
        <template v-for='(item,key0) in counselingList'>
          <view class='flex flex-direction flex-wrap align-stretch myAppointment_fd3_0' @tap.stop="godetail(item)"
            data-type="navigateTo" :data-url="`/pages/shouye/tutoringReview/tutoringReview?id=${item.aid}`" :key='key0'>
            <text class='myAppointment_fd3_0_c0'>{{$t('预约信息')}}</text>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c1'>
              <text class='myAppointment_fd3_0_c1_c0'>{{item.true_name}}</text>
              <image class='myAppointment_fd3_0_c1_c1' mode="aspectFill" :src='STATIC_URL+"14.png"'></image>
              <text class='myAppointment_fd3_0_c1_c0'>{{item.mobile}}</text>
            </view>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('申请单位')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.company}}</text>
            </view>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('参观人数')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.number}}</text>
            </view>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('联络人')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.true_name}}</text>
            </view>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('联系邮箱')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.mobile}}</text>
            </view>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('参访日期')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.canfangriqi}}</text>
            </view>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('预计抵达时间')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.daodashijian}}</text>
            </view>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('预约时间')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.time}}</text>
            </view>
            <view class='flex flex-wrap align-center myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('留寺午斋')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.is_lisi==1 ? '是' : '否'}}</text>
            </view>
            <view class='myAppointment_fd3_0_c2'>
              <text class='myAppointment_fd3_0_c2_c0'>{{$t('备注')}}：</text>
              <text class='myAppointment_fd3_0_c2_c0'>{{item.remark}}</text>
            </view>
            <image class='myAppointment_fd3_0_c4' mode="aspectFit" :src='STATIC_URL+"15.png"'
              v-if=" item.check_status=='1'"></image>
            <image class='myAppointment_fd3_0_c4' mode="aspectFit" :src='STATIC_URL+"91.png"'
              v-if=" item.check_status=='2'"></image>
            <image class='myAppointment_fd3_0_c4' mode="aspectFit" :src='STATIC_URL+"90.png"'
              v-if=" item.check_status=='3'"></image>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "tabsInfofd1_0": {
          lineleft: '',
          lineWidth: '',
          moveX: 0,
          scrollX: 0,
          PageScrollX: 0
        },
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "tabls": "2",
        "counselingList": [],
        "curriculumList": []
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getRequestFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {
      this.getRequestFunc()
    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      godetail(item) {
        if (item.check_status == 2) {
          return;
        }
        uni.navigateTo({
          url: `/pages/shouye/tutoringReview/tutoringReview?id=${item.aid}`
        })
      },
      //请求数据
      getRequestFunc() {
        if (this.tabls == '1') {
          this.minixPagingListsApi = global.apiUrls.post6560385f8e11c;
          this.pageingListApiMethod = 'get';
          this.allowOnloadGetList = false;
          this.pagingListPostDataContent = {}
          this.listData = [];
          this.curriculumList = this.listData;
          this.pagingListToggle();

        } else if (this.tabls == '2') {
          this.minixPagingListsApi = global.apiUrls.post6589a26945550;
          this.pageingListApiMethod = 'get';
          this.allowOnloadGetList = false;
          this.pagingListPostDataContent = {}
          this.listData = [];
          this.counselingList = this.listData;
          this.pagingListToggle();

        }
      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(247, 243, 237, 1);
    background-size: 100% auto;
  }

  .myAppointment_flex_0 {
    border-bottom: 1px solid #eee;
    background: rgba(247, 243, 237, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .myAppointment_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .myAppointment_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .myAppointment_fd0_0_c0 {
    width: 120rpx;
  }

  .myAppointment_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .myAppointment_flex_1 {
    background: rgba(247, 243, 237, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 100rpx;
    background-size: 100% auto;
  }

  .myAppointment_titlefd1_0_c3 {
    margin: 0rpx 107rpx 0rpx 0rpx;
  }

  .myAppointment_linefd1_0 {
    background: rgba(145, 47, 34, 1);
    width: 16rpx;
    height: 16rpx;
    top: 72rpx;
    background-size: 100% auto !important;
    border-radius: 100rpx;
  }

  .checkTitlefd1_0 {
    font-weight: 700 !important;
    font-size: 28rpx !important;
    color: #912F22 !important;
  }

  ::v-deep .myAppointment_benbenTabsfd1_0 {
    width: 750rpx;
    height: 90rpx;
    white-space: nowrap;
    text-align: center;
    padding-left: 46px;
    font-size: 28rpx;
    font-weight: 400;
    color: #666666;
  }

  .myAppointment_flex_2 {
    padding: 32rpx 32rpx 0rpx 32rpx;
  }

  .myAppointment_fd2_0_c1_c1_c0 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 36rpx;
  }

  .myAppointment_fd2_0_c1_c1 {
    margin: 6rpx 0rpx 0rpx 0rpx;
  }

  .myAppointment_fd2_0_c1_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 42rpx;
  }

  .myAppointment_fd2_0_c1 {
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .myAppointment_fd2_0_c0 {
    width: 160rpx;
    height: 160rpx;
    border-radius: 24rpx;
  }

  .myAppointment_fd2_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 40rpx;
    background-size: 100% auto;
    padding: 32rpx 24rpx 32rpx 24rpx;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }

  .myAppointment_flex_3 {
    padding: 25rpx 32rpx 0rpx 32rpx;
  }

  .myAppointment_fd3_0_c4 {
    width: 231rpx;
    height: 147rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    position: absolute;
    z-index: 1;
    right: 0rpx;
    top: 0rpx;
  }

  .myAppointment_fd3_0_c2_c0 {
    color: #999999;
    font-size: 26rpx;
    font-weight: 400;
    line-height: 42rpx;
  }

  .myAppointment_fd3_0_c2 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .myAppointment_fd3_0_c1_c1 {
    width: 32rpx;
    height: 32rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 8rpx 0rpx 125rpx;
  }

  .myAppointment_fd3_0_c1_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 42rpx;
  }

  .myAppointment_fd3_0_c1 {
    margin: 55rpx 0rpx 0rpx 0rpx;
  }

  .myAppointment_fd3_0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 42rpx;
  }

  .myAppointment_fd3_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 40rpx;
    background-size: 100% auto;
    padding: 32rpx 24rpx 32rpx 24rpx;
    position: relative;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }
</style>
